package com.school.adminServlet.cmd;

import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Logger;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.school.dao.AttendanceManagerDao;
import com.school.dao.AttendanceManagerDaoImpl;

public class TeacherAttendanceReportCommand implements AdminCommand {

	public static Logger log = Logger.getLogger(TeacherAttendanceReportCommand.class.getSimpleName());
	@Override
	public void processRequest(HttpServletRequest req,
			HttpServletResponse resp, ServletConfig config)
			throws ServletException, IOException {
		log.info("entered processRequest()+kkkkkkkkkkkkkkkkk");
		
		req.setAttribute("info", true);
		req.setAttribute("teaAttR", true);
		
		req.setAttribute("nTeaAttM", false);
		req.setAttribute("nTeaAttR", false);
		req.setAttribute("teaAttM", false);
		req.setAttribute("stuAttM", false);
		req.setAttribute("stuAttR", false);
		req.setAttribute("contactUs", false);
		req.setAttribute("viewAllRegistered", false);
		req.setAttribute("scheduleExam", false);
		req.setAttribute("publishExamResult", false);
		req.setAttribute("scheduleInterview", false);
		req.setAttribute("publishFinalResult", false);
		req.setAttribute("profileManage", false);
		req.setAttribute("admission", false);
		req.setAttribute("examManage", false);
		req.setAttribute("timeTable", false);
		req.setAttribute("attendance", false);
		req.setAttribute("studentDetails", false);
		req.setAttribute("manageNews", false);
		req.setAttribute("more", false);
		

		RequestDispatcher dispatcher = req.getRequestDispatcher("/admin_home.jsp");
		dispatcher.forward(req, resp);
		
		log.info("exited processRequest()+kkkkkkkkkkkkkkkkkk");
	}

}
